package com.oscarmovie.service;

import java.util.List;

import com.oscarmovie.dao.DatetimeDao;
import com.oscarmovie.model.Datetime;

public class DatetimeServiceImpl implements DatetimeService{
	private DatetimeDao datetimeDao;

	public void setDatetimeDao(DatetimeDao datetimeDao) {
		this.datetimeDao = datetimeDao;
	}

	public DatetimeDao getDatetimeDao() {
		return datetimeDao;
	}

	
	public void save(Datetime datetime) {
		datetimeDao.save(datetime);
	}

	
	public Datetime load(int id) {
		Datetime datetime =  datetimeDao.load(id);
		return datetime;
	}

	
	public List<Datetime> loadAll() {
		return datetimeDao.loadAll();
	}
}
